//
//  BaseNewsView.h
//  iCarStyle
//
//  Created by liunian on 14-2-19.
//  Copyright (c) 2014年 liunian. All rights reserved.
//

#import "UIBaseRefreshView.h"
#import "ArticleCell.h"
#import "Article.h"
#import "ReqObject.h"

@protocol BaseNewsView_Delegate

@optional
- (void)toItemViewControllerWithArticle:(Article*)article;
@end

@interface BaseNewsView : UIBaseRefreshView{
    BOOL            _hasMoreData;   //是否有更多的数据
}
@property (nonatomic, retain) NSMutableArray *dataSource;
@property (nonatomic, assign) CatalogType    catalogType;
@property (nonatomic, assign) BOOL           isFirstRequest;
@property (nonatomic, strong) ReqObject     *objectReq;
@property (nonatomic, assign) id<BaseNewsView_Delegate>clickDelegate;

- (id)initWithFrame:(CGRect)frame Catalog:(CatalogType)type;
- (void)endRefreshState;
- (void)hideNoDataView;
- (void)showNoDataView;
- (void)changeNoDataViewState;
- (void)reloadTable;

- (void)requestDataFinished;    //请求结束后执行操作由派生类自己实现
@end